package com.situ.mpgenerator.controller;


import com.situ.mpgenerator.pojo.User;
import com.situ.mpgenerator.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Gao
 * @since 2022-09-22
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private IUserService userService;

    @RequestMapping("/selectAll")
    public List<User> selectAll() {
        List<User> list = userService.list();
        return list;
    }
}

